package cn.aitrox.ry.service.oss.enumtype;

public enum StorageTypeEnum {

    UCLOUD("UCLOUD", "UCLOUD"),

    LOCAL("LOCAL", "LOCAL");

    private String type;

    private String desc;

    StorageTypeEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public String getType() {
        return type;
    }

    public String getDesc() {
        return desc;
    }

    public static StorageTypeEnum getEnum(String type) {
        for (StorageTypeEnum typeEnum : StorageTypeEnum.values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
